<template>
  <div class="Organize">
    <el-form
    ref="form"
      :model="form"
      label-width="70px"
      label-position="left"
    >
      <!-- <el-form-item label="封面上传">
          <uploadimg uploadtype="fmlogo" :userid="props.form.id"/>
      </el-form-item> -->
      <el-form-item label="id" class="inputbox">
        <el-input disabled :height="140" v-model="props.form.id"></el-input>
      </el-form-item>
      <el-form-item label="用户id" class="inputbox">
        <el-input-number :min="1" v-model="props.form.user_id"></el-input-number>
      </el-form-item>
      <el-form-item label="标题" class="inputbox">
        <el-input v-model="props.form.Release_title"></el-input>
      </el-form-item>
      <el-form-item label="用户名" class="inputbox">
        <el-input v-model="props.form.Release_user"></el-input>
      </el-form-item>
      <el-form-item label="上传日期" class="inputbox">
        <el-date-picker
          type="date"
          placeholder="选择日期"
          value-format="YYYY-MM-DD"
            v-model="props.form.created_At"
          ></el-date-picker>
      </el-form-item>
      <el-form-item label="更新日期" class="inputbox">
        <el-date-picker
          type="date"
          placeholder="选择日期"
          value-format="YYYY-MM-DD"
            v-model="props.form.updated_At"
          ></el-date-picker>
      </el-form-item>
      <el-form-item label="上传内容" class="WangEditorbox">
        <WangEditor v-model="props.form.party_lifes" />
      </el-form-item>
      <el-form-item>
        <slot></slot>
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup lang="ts">
const props = defineProps({
  formLabel: Array,
  form: Object,
  inline: Boolean,
  operateType: String,
});
onMounted(() => {
  console.log("props==============", props.form);
});
</script>

<style lang="scss" scoped>
.Organize {
  // width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .WangEditorbox {
      // height: 20%;
    }
    .inputbox{
        width: 60%;
        // margin: 10px;
        // line-height: 30px;
  }
}
</style>
